<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./jquery-3.6.0.js" type="text/javascript"></script>
</head>
<body>
    <button id="btn1">点击发起请求</button>
    <script>
        $("#btn1").click(function(){
            alert('111')
            $.ajax({
            type:"get",
            url:"./information.txt",
            success:function(data){
                console.log(data);
            }
        })
    })
        
        // $.get('js/information.txt')
    </script>
</body>
</html>